<div class="h8"></div>
<!-- 通栏-->
<div class="detailContent-title">
<?php if(isset($this->breadcrumbs)):?>
    <?php $this->widget('zii.widgets.CBreadcrumbs', array(
    'htmlOptions'=>array('class'=>'local'),
    'separator'=>'&nbsp;&gt;&nbsp;',
    'links'=>array(
//        $current->parent->name=>$this->createUrl('cate/list',array('pid'=>$current->pid)),
        $current->name //=>$this->createUrl('cate/list',array('pid'=>$current->pid, 'cid'=>$current->cid))
    ),
    'homeLink'=>'当前位置：首页',
    'tagName'=>'span',
)); ?><!-- breadcrumbs -->
<?php endif?>
</div>

<div class="wp">
<?php
if($cid==22){
    $criteria=new CDbCriteria;
    $criteria->with='info';
    $criteria->condition='`info`.`expert` = 1';
    $dataProvider=new CActiveDataProvider('Users',array(
        'criteria'=>$criteria,
        'pagination'=>array(
            'pageSize'=>12,
        ),
    ));
     $ul_class= 'tonglan blackh';
     $itemView='item/22';

    $this->widget('zii.widgets.CListView', array(
        'dataProvider'=>$dataProvider,
        'itemView'=>$itemView,
        'ajaxUpdate'=>false,
        'template'=>"{items}\n{pager}" ,
        'itemsTagName'=>'ul',
        'itemsCssClass'=>$ul_class,
    ));
}elseif($cid==23){
    $criteria=new CDbCriteria;
    $criteria->condition='`enabled`=1 AND `audit`=1 AND cid='.$cid;
    $criteria->order='`sort` ASC, `createtime` DESC';
    $dataProvider=new CActiveDataProvider('Article',array(
        'criteria'=>$criteria,
        'pagination'=>array(
            'pageSize'=>30,
        ),
    ));

    $session=new CHttpSession();
    $session->open();
    $session['i']=1;

    echo '<ul class="tonglan cjlist">';
    echo '<li class="bt color">标题</li>
      <li class="ren color">发布人</li>
      <li class="time color">发布时间</li>
      <li class="star color">星级标准</li>
      <li class="hit color">点击量</li></ul><ul>';
    $this->widget('zii.widgets.CListView', array(
        'dataProvider'=>$dataProvider,
        'itemView'=>'item/23',
        'ajaxUpdate'=>false,
        'template'=>"{items}\n{pager}"
    ));
    echo '</ul>';
} elseif($cid==24){
    $criteria=new CDbCriteria;
    $criteria->condition='`enabled`=1 AND cid='.$cid;
    $criteria->order='`sort` ASC, `createtime` DESC';
    $dataProvider=new CActiveDataProvider('Article',array(
        'criteria'=>$criteria,
        'pagination'=>array(
            'pageSize'=>30,
        ),
    ));

    $session=new CHttpSession();
    $session->open();
    $session['i']=1;

    echo '<ul class="tonglan cjlist">';
    echo '<li class="bt color">产权名称</li>
      <li class="ren color">所属者</li>
      <li class="time color">信息来源</li>
      <li class="time color">发布时间</li>
      <li class="hit color">点击量</li></ul><ul>';
    $this->widget('zii.widgets.CListView', array(
        'dataProvider'=>$dataProvider,
        'itemView'=>'item/24',
        'ajaxUpdate'=>false,
        'template'=>"{items}\n{pager}"
    ));
    echo '</ul>';
}elseif($cid==25){
    $criteria=new CDbCriteria;
    $criteria->condition='`enabled`=1 AND cid='.$cid;
    $criteria->order='`sort` ASC, `createtime` DESC';
    $dataProvider=new CActiveDataProvider('Article',array(
        'criteria'=>$criteria,
        'pagination'=>array(
            'pageSize'=>30,
        ),
    ));

    $session=new CHttpSession();
    $session->open();
    $session['i']=1;

    echo '<ul class="tonglan cjlist">';
    echo '<li class="bt btt color">标题</li>
      <li class="ren color">出处</li>
      <li class="time color" style="width: 150px;">发布时间</li>
      <li class="hit color">点击量</li></ul><ul>';
    $this->widget('zii.widgets.CListView', array(
        'dataProvider'=>$dataProvider,
        'itemView'=>'item/25',
        'ajaxUpdate'=>false,
        'template'=>"{items}\n{pager}"
    ));
    echo '</ul>';
}elseif($cid==26){
     $this->renderPartial('item/26');
}elseif($cid==27){
    $criteria=new CDbCriteria;
//    $criteria->condition='audit=1';
//    $criteria->with='user';
//    $criteria->group='uid';

    $criteria->condition='`p`.`type_pg` = 2 AND `p`.`open`=1';
    $criteria->with='p';



    $dataProvider=new CActiveDataProvider('Users',array(
        'criteria'=>$criteria,
        'pagination'=>array(
            'pageSize'=>48,
        ),
    ));

    $session=new CHttpSession();
    $session->open();
    $session['i']=1;

    $this->widget('zii.widgets.CListView', array(
        'dataProvider'=>$dataProvider,
        'itemView'=>'item/27',
        'ajaxUpdate'=>false,
        'template'=>"{items}\n{pager}" ,
        'itemsTagName'=>'ul',
        'itemsCssClass'=>'tb',
    ));
}
?>
    <div class="celar"></div>
</div>

<div class="h8"></div>